<?php

namespace App\Task;

use App\Model\UserRecValue;
use Hyperf\Crontab\Annotation\Crontab;

/**
 * 推荐值排行
 * @Crontab(name="RecValueTask", rule="*\/120 * * * *", callback="execute", memo="推荐值排行",singleton=true)
 */
class RecValueTask
{
    /**
     * @return void
     */
    public function execute()
    {
        log_info(__CLASS__ . "==Start==" . date('Y-m-d H:i:s'));
        UserRecValue::initNew();
        UserRecValue::initHot();
        UserRecValue::initOther();
        log_info(__CLASS__ . "==Start==" . date('Y-m-d H:i:s'));
    }
}
